Repository navigation
Conversation
sbc100
reviewed
Dec 1, 2026
|
|
||
| temp_files = shared.get_temp_files() | ||
| with temp_files.get_file(suffix='.js') as shell_temp: | ||
| with temp_files.get_file(suffix=utils.suffix(options.shell_html)) as shell_temp: |
Collaborator
There was a problem hiding this comment.
Why not just hardcode .html here?
This might even be the better option since if .html is handled specially by read_and_preprocess (it seems odd that it is but whatever) then we really want to force this special handling here.. whatever the user names their shell file?
Collaborator
Author
There was a problem hiding this comment.
Good point. AI was being generic it looks like. Updated to html.
sbc100
reviewed
Dec 1, 2026
| {{{ DOWNLOAD_JS_AND_WASM_FILES }}} | ||
| </script> | ||
| </body> | ||
| </html> |
Collaborator
There was a problem hiding this comment.
Can we make this this file even smaller/simpler?
The JS preprocessor leaves `<style>` blocks in HTML files alone (emscripten-core#7724), because CSS id selectors such as `#results { ... }` look like preprocessor directives. It tells HTML files from other files by their suffix. With MINIMAL_RUNTIME it is a temporary copy of the shell file that gets preprocessed, and that copy was created with a `.js` suffix. A shell file with such CSS then failed to build with `Unknown preprocessor directive #results`. Give the temporary copy the suffix of the shell file instead. Fixes: emscripten-core#13488 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juj
force-pushed
the
fix_minimal_runtime_shell_style
branch
from
December 1, 2026 13:41
2d1a7b1 to
b2c97e8
Compare
sbc100
approved these changes
Dec 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix CSS style
#foodirectives inside<style>blocks in HTML files from being mistaken as C preprocessor directives.Fixes: #13488